home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmMyClip
- Caption = "The MyClip Program"
- ClientHeight = 4020
- ClientLeft = 1095
- ClientTop = 1785
- ClientWidth = 6945
- Height = 4710
- Icon = MYCLIP.FRX:0000
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 4020
- ScaleWidth = 6945
- Top = 1155
- Width = 7065
- Begin TextBox txtMyText
- Height = 3135
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 0
- Top = 0
- Width = 5175
- End
- Begin Menu mnuFile
- Caption = "&File"
- Begin Menu mnuExit
- Caption = "E&xit"
- End
- End
- Begin Menu mnuEdit
- Caption = "&Edit"
- Begin Menu mnuCopy
- Caption = "&Copy"
- Shortcut = ^C
- End
- Begin Menu mnuCut
- Caption = "C&ut"
- Shortcut = ^X
- End
- Begin Menu mnuPaste
- Caption = "&Paste"
- Shortcut = ^V
- End
- End
- Option Explicit
- Sub Form_Resize ()
- ' The height of the text box should have the same
- ' height as the form.
- txtMyText.Height = frmMyClip.ScaleHeight
- ' The width of the text box should have the same
- ' width as the form.
- txtMyText.Width = frmMyClip.ScaleWidth
- End Sub
- Sub mnuCopy_Click ()
- ' Clear the clipboard
- Clipboard.Clear
- ' Copy to the clipboard the currently
- ' selected text.
- Clipboard.SetText txtMyText.SelText
- End Sub
- Sub mnuCut_Click ()
- ' Clear the clipboard
- Clipboard.Clear
- ' Copy to the clipboard the currently
- ' selected text.
- Clipboard.SetText txtMyText.SelText
- ' Replace the currently selected text
- ' with null.
- txtMyText.SelText = ""
- End Sub
- Sub mnuExit_Click ()
- End
- End Sub
- Sub mnuPaste_Click ()
- ' Do the Paste operation
- txtMyText.SelText = Clipboard.GetText()
- End Sub
-